package cn.edu.scau.cmi.wangmaoren.composite.safe;

public class SafeLeaf extends SafeComponent
{
	private String name;

	@Override
	public String doSomething()
	{
		return "我是安全性组合模式中的叶子节点组件";
	}

	@Override
	public SafeComponent getParent()
	{
		return this.getParent();
	}

	public String getName()
	{
		return name;
	}

	public void setName(String name)
	{
		this.name = name;
	}

}
